<div class="pageContent">
	<form method="post" action="<?php echo site_url('backend/product/edit') ?>" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent nowrap" layoutH="56">
			<input type="hidden" name="id" value="<?php echo $id?>">
			<dl>
				<dt>商品货号：</dt>
				<dd><input name="serial" type="text" size="30" class="required" value="<?php echo $serial?>"/></dd>
			</dl>
			<dl>
				<dt>商品名称：</dt>
				<dd><input name="name" type="text" size="30" class="required" value="<?php echo $name?>"/></dd>
			</dl>
			<dl>
				<dt>分类：</dt>
				<dd><select name="category_id" class="required combox">
					<?php echo $this->html_helper->select($categoryList, $category_id)?>
				</select></dd>
			</dl>
			<dl>
				<dt>规格名称：</dt>
				<dd><input name="specs" type="text" size="30" class="required" value="<?php echo $specs?>"/></dd>
			</dl>
			<dl>
				<dt>单价/元：</dt>
				<dd><input name="price" type="text" size="30" class="required number" value="<?php echo $price / 100.00?>"/></dd>
			</dl>
			<dl>
				<dt>库存：</dt>
				<dd><input name="stock" type="text" size="30" class="required digits" value="<?php echo $stock?>"/></dd>
			</dl>
			<dl>
				<dt>缩略图：</dt>
				<dd><input name="attachment_id" type="hidden" value="<?php echo $thumbnail_id?>"/>
					<input name="attachment_filename" type="text" size="30" class="readonly textInput required" value="<?php echo $thumbnail?>"/>
					<a class="btnAttach" href="<?php echo site_url('backend/product/multiUpload?id='.$id);?>" lookupgroup="attachment" width="560" height="300" title="附件">附件</a>
				</dd>
			</dl>
			<dl>
				<dt>热销：</dt>
				<dd><select name="isHot" class="required combox">
					<?php echo $this->html_helper->select(array('10'=>'是', '0'=>'否'), $isHot)?>
				</select></dd>
			</dl>
			<dl>
				<dt>热销图：</dt>
				<dd><input name="hot_id" type="hidden" value="<?php echo $hot_img_id?>"/>
					<input name="hot_filename" type="text" size="30" class="readonly textInput" value="<?php echo $hot_img?>"/>
					<a class="btnAttach" href="<?php echo site_url('backend/product/multiUpload?id='.$id);?>" lookupgroup="hot" width="560" height="300" title="附件">附件</a>
				</dd>
			</dl>
			<dl>
				<dt>限购：</dt>
				<dd><select name="isLimit" class="required combox">
					<?php echo $this->html_helper->select(array('10'=>'是', '0'=>'否'), $isLimit)?>
					</select><input name="limit_num" type="text" size="5" value="<?php echo $limit_num?>" class="required digits"/><span class="info">&nbsp;件/每人</span></dd>
			</dl>
			<dl>
				<dt>状态：</dt>
				<dd><select name="status" class="required combox">
					<?php echo $this->html_helper->select(array('10'=>'上架', '0'=>'下架'), $status)?>
				</select>
				</dd>
			</dl>
			<div class="divider"></div>
			<dl class="nowrap">
				<dt>附加选项：</dt>
				<dd>
					<label><input type="checkbox" name="dellink">删除外部链接</label>
					<label><input type="checkbox" name="remote">本地化远程图片</label>
				</dd>
			</dl>			
			<div class="divider"></div>
			<dl class="nowrap">
				<dt>描述：</dt>
				<dd><textarea class="editor" cols="80" rows="20" name="content"
							  upImgUrl="<?php echo site_url('backend/product/xhupload?id='.$id)?>" upImgExt="bmp,jpg,jpeg,gif,png"><?php echo $content?></textarea></dd>
			</dl>
			<div class="divider"></div>			
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
